<template>
  <div  id="main-div" style="width: 1200px;margin: 0 auto">
    <el-card style="width: 500px;height: 300px;margin: 50px auto">
      <el-form label-width="80px" style="margin-top: 50px;width: 430px">
        <el-form-item label="用户名">
          <el-input type="text" placeholder="请输入用户名" ></el-input>
        </el-form-item>
        <el-form-item label="密码">
          <el-input type="password" placeholder="请输入密码" ></el-input>
        </el-form-item>
        <el-form-item label="昵称">
          <el-input type="text" placeholder="请输入昵称" ></el-input>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click="reg()">注册</el-button>
        </el-form-item>
      </el-form>
    </el-card>
  </div>
</template>

<script setup>

</script>

<style scoped>
#main-div{
  overflow: hidden;
  height: 500px;
  background-image: url('/public/imgs/reg.jpg');
  background-size: cover;/*设置背景图片为封面*/
  background-position: center;/*设置背景图片居中*/
}
</style>